home *** CD-ROM | disk | FTP | other *** search
- #
- # subproj.make
- #
- # Inputs from Makefile.preamble (no defaults):
- # OTHER_CFLAGS - Flags passed to compiler (in addition to -g, -O, etc.)
- # OTHER_OFILES - Additional relocatables that may be linked in
- # OTHER_PRODUCT_DEPENDS - Other dependencies of this project
- # OTHER_SOURCEFILES - Other source files maintained by .pre/postamble
- # OTHER_GARBAGE - Additional files to be removed by make 'clean'
- #
- # MSGFILES - .msg files that should have msgwrap run on them
- # DEFSFILES - .defs files that should have mig run on them
- # MIGFILES - .mig files (no .defs files) that should have mig run on them
- #
- # PRECOMPS - Precompiled headers that should be built before compilation
- # OTHER_INITIAL_TARGETS - Targets to be built before subprojects, etc.
- #
- # Inputs from Makefile.postamble (with defaults set in common.make):
- # MAKEFILES - Makefiles this project depends on (default = Makefile)
- #
- # Inputs from Makefile (avoid setting these, ProjectBuilder controls them):
- # NAME - name of application
- # LANGUAGE - langage in which the project is written (default "English")
- # LOCAL_RESOURCES - localized resources (e.g. nib's, images) of project
- # GLOBAL_RESOURCES - non-localized resources of project
- #
- # CLASSES - Class implementation files in project.
- # HFILES - Header files in project.
- # MFILES - Other Objective-C source files in project.
- # CFILES - Other C source files in project.
- # PSWFILES - .psw files in the project
- # PSWMFILES - .pswm files in the project
- # SUBPROJECTS - Subprojects of this project
- # BUNDLES - Bundle subprojects of this project
- # OTHERSRCS - Other miscellaneous sources of this project
- # OTHERLINKED - Source files not matching a standard source extention
- # OTHERLINKEDOFILES - Other relocatable files to (always) link in
- # APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles
- # MAKEFILEDIR - Directory in which to find $(MAKEFILE)
- # MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make)
- #
-
- APP_MAKEFILE_DIR = /NextDeveloper/Makefiles/app
- include $(APP_MAKEFILE_DIR)/common.make
-
- PRODUCT = $(PRODUCT_PREFIX:.subproj=_subproj.o
-
- project:: $(INITIAL_TARGETS) subprojs bundles resources $(PRODUCT)
-
- TEMP_C_FILE = $(PRODUCT:.o=)_empty.c
-
- $(PRODUCT): $(PRODUCT_DEPENDS)
- @(if [ "`$(ECHO) $(OFILES) | wc -w`" != " 0" ] ; then \
- $(ECHO) $(CC) $(ALL_CFLAGS) -nostdlib $(OFILES) $(OTHER_OFILES) -r -o $(PRODUCT) ; \
- $(CC) $(ALL_CFLAGS) -nostdlib $(OFILES) $(OTHER_OFILES) -r -o $(PRODUCT) ; \
- else \
- $(ECHO) Warning: Building empty subproject... ; \
- $(RM) -f $(TEMP_C_FILE) ; \
- $(TOUCH) $(TEMP_C_FILE) ; \
- $(CC) $(ALL_CFLAGS) -c $(TEMP_C_FILE) -o $(PRODUCT) ; \
- $(RM) -f $(TEMP_C_FILE) ; \
- fi)
-
- depend:: Makefile.dependencies $(SUBPROJECTS:.subproj=.depend) $(BUNDLES:.bproj=.depend)
-
-